package com.ttjj.common;

import org.apache.commons.lang.StringUtils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author hhs
 * @date 2024-09-25
 */
public class AppConfigUtil {
    /**
     * 地图size
     * 可能为 s
     */
    public static String mapSize;

    static {
        try {
            InputStream is = AppConfigUtil.class.getClassLoader().getResourceAsStream("game.properties");
            Properties props = new Properties();
            props.load(is);
            is.close();
            mapSize = StringUtils.trim(props.getProperty("QZJ_URL"));

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
